<?php
	if($x instanceof SOME_CLASS)
	{

	}

	if($y instanceof $x)
	{

	}
?>
